﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;

namespace BF
{
	public class BF_Map
	{
		public List<BF_Area> Areas;

		public List<PolyLine3G> Borders;
		public void LoadBorders()
		{
			Borders = new List<PolyLine3G>();

			V3G P1 = new V3G(0, 0.6);
			V3G P2 = new V3G(0.8, 0.6);
			V3G P3 = new V3G(0.2, 0.4);
			V3G P4 = new V3G(0.6, 0.4);
			V3G P5 = new V3G(0.8, 0.2);
			V3G P6 = new V3G(0.2, 0.2);
			V3G P7 = new V3G(0.8, 0.0);
			V3G P8 = new V3G(0.4, 0.0);
			V3G P9 = new V3G(0.0, 0.0);
			//1-------2
			//|\     /|
			//| 3---4 |
			//| |    \|
			//| 6     5
			//|  \    |
			//9---8---7
			Borders.Add(new PolyLine3G(P1, P2));
			Borders.Add(new PolyLine3G(P1, P3));
			Borders.Add(new PolyLine3G(P1, P9));
			Borders.Add(new PolyLine3G(P2, P4));
			Borders.Add(new PolyLine3G(P2, P5));
			Borders.Add(new PolyLine3G(P3, P4));
			Borders.Add(new PolyLine3G(P3, P6, P8));
			Borders.Add(new PolyLine3G(P4, P5));
			Borders.Add(new PolyLine3G(P5, P7));
			Borders.Add(new PolyLine3G(P7, P8));
			Borders.Add(new PolyLine3G(P8, P9));
		}
		public void Process(double dt)
		{
			foreach (BF_Area A in Areas)
				;
		}
	}
}